package com.ncr.travel.appmgr.client.ui.table;

/**
 * The interface for objects wishing to receive events from TableModel instances
 * 
 * @author ma250087
 */
public interface TableModelListener {
	/**
	 * Called when a model has been sorted successfully
	 * @param model The model that triggered this event
	 */
	public void modelSorted(TableModel<?> model);

	/**
	 * Called when a row has been updated successfully in a model
	 * @param model The model that triggered this event
	 * @param row The row offset of the model that was updated
	 */
	public void modelRowUpdated(TableModel<?> model, int row);

	/**
	 * Called when a cell has been successfully updated in a model
	 * @param model The model that triggered this event
	 * @param row The row offset of the model that was updated
	 * @param col The column offset of the model that was updated
	 */
	public void modelCellUpdated(TableModel<?> model, int row, int col);
}